package com.ikun.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ikun.entity.BuildingManagers;
import com.ikun.entity.Buildings;

/**
 * @ClassName: BuildingsDao
 * @Author: 吴思伟
 * @CreateTime: 2025-03-28 16:19
 * @Description: 楼房相关的数据库操作
 * @Version: 1.0
 */
public interface BuildingsDao extends BaseMapper<Buildings> {
    List<Buildings> buildsDetails();

    List<Buildings> findAllBuildingsByMangerId(@Param("mangerId") Integer mangerId);

    int addBuilding(@Param("buildingNumber") String buildingNumber, @Param("totalFloors") String totalFloors,
        @Param("totalAreas") String totalAreas, @Param("location") String location);

    void deleteByManagerId(Integer managerId);

    int batchInsert(List<BuildingManagers> list);

    // String updateManageBuilds(Integer managerId, String[] buildingIds);
}
